<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>扩展运算符</title>
  </head>
  <body>
    <script type="text/javascript" >
        let obj = {a:1,b:2}
        let arr = [1,3,5,7,9]
        let obj2 = {...obj,a:100}

        // console.log(...obj) //此行报错
        // console.log(...arr)

        console.log(obj2)



    </script>
  </body>
</html>